home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # querystatus: query Demon status information.
- # Copyright 1995 John A. Phillips - john@linux.demon.co.uk
- # usage: querystatus
-
- # Assign a temporary file.
- tmpfile=/tmp/demon.status
-
- # Query Demon status information.
- /usr/bin/finger motd@gate.demon.co.uk 2>&1 >$tmpfile
- /usr/bin/finger status@gate.demon.co.uk 2>&1 >>$tmpfile
- /bin/echo ""
- /bin/cat $tmpfile
- /bin/echo ""
-
- # Finally, tidy up.
- # rm -f $tmpfile
-